package com.ikun.admin.modules.auth.utils;

/**
 * @author ximeng
 * @title: ResponseCode
 */
public enum ResponseCode {
    SUCCESS(0, "请求成功"),
    FAIL(-1, "请求失败"),
    UNAUTH_ENTRYPOINT(403, "无权访问"),
    LOGIN_FAIL(402, "用户名或者密码不对")
    ;
    private Integer code;
    private String message;

    ResponseCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
